package com.middlegroup.pay.mapper;

import com.middlegroup.pay.entity.Merchant;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 商户表 Mapper 接口
 * </p>
 *
 * @author pc123
 * @since 2019-01-04
 */
public interface MerchantMapper extends BaseMapper<Merchant> {


    @Select("select * from t_merchant where code=#{code}")
    Merchant getMerchantByCode(@Param("code") String code);

}
